//导入request.js请求工具
import request from '@/utils/request'


//提供调用根据用户名和密码登录接口的函数
export const listChannelService=()=>{

    return request.post("/channel/list");
}



//查询所有分类
export const listTypeService=()=>{

    return request.post("/channel/listType");
}

//添加
export const addService=(form)=>{

    return request.post("/channel/add",form);
}

//添加
export const taskService=(time)=>{

    return request.post("/channel/setTask/"+time);
}


//定时发布
export const taskPublishService=(form)=>{

    return request.post("/channel/taskPublish",form);
}